// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** oss鉴权 */
export async function getOssSecurity(body?: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/goOssSecurity', {
        method: 'POST',
        params: body,
        ...(options || {}),
    });
}
/** 获取学科列表 */
export async function subList(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/subList', {
        method: 'POST',
        params: body,
        ...(options || {}),
    });
}
/** 删除学科 */
export async function delSub(body:any , options?: { [key: string]: any }){
    return request('/ak/ky/pc/delSub', {
        method: 'POST',
        params: body,
        ...(options || {}),
    });
}
/** 新增学科 */
export async function addSub(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/addSub', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 修改学科 */
export async function upSub(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/upSub', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}

/** 获取系列列表 */
export async function seriseList(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/seriesList', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 删除系列 */
export async function delSeries(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/delSeries', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}

/** 新增系列 */
export async function addSeries(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/addSeries', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 修改系列 */
export async function upSeries(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/upSeries', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}

/** 获取合集列表 */
export async function collectList(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/releaseList', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 删除合集 */
export async function delRelease(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/delRelease', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 新增合集 */
export async function addRelease(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/addRelease', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 修改合集 */
export async function upRelease(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/upRelease', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 获取资源列表 */
export async function detailList(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/detailList', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 删除资源 */
export async function delDetail(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/delDetail', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}

/** 新增资源 */
export async function addDetail(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/addDetail', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
/** 修改资源 */
export async function upDetail(body: any, options?: { [key: string]: any }) {
    return request('/ak/ky/pc/upDetail', {
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
